package cnpm02.j2ee.group3.logic.validator;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.hibernate.validator.ValidatorClass;

@Documented
@ValidatorClass(EmailValidator.class)
@Target({FIELD, METHOD})
@Retention(RUNTIME)
public @interface CustomEmail {
	String message() default "{validator.email}";
}
